Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Handle optional binaries with transaction request #34

Merged
merged 3 commits into from
May 17, 2024
Merged

Conversation

cichaczem
Copy link
Contributor

No description provided.

src/db.rs Outdated
@@ -300,6 +301,7 @@ impl Database {
.bind(priority)
.bind(relayer_id)
.bind(nonce)
.bind(binaries.map(|b| b))
Copy link
Contributor

@Dzejkop Dzejkop Apr 23, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As clippy says the .map(|b| b) is a no-op

let decoded_vec: Vec<Vec<u8>> = base64_vec
.into_iter()
.map(|base64_str| {
general_purpose::STANDARD.decode(base64_str).unwrap()
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's use custom for proper error handling

@cichaczem cichaczem merged commit bfed77d into main May 17, 2024
4 checks passed
@cichaczem cichaczem deleted the optional-binaries branch May 17, 2024 07:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants